package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hua
 * @version 1.0
 * @title Ordering
 * @description 订单信息
 * @create 2024/3/15 16:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders {
    @TableId(type = IdType.ASSIGN_ID)
    private String oid;
    @DateTimeFormat(pattern ="“yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    private Double total;
    private Integer state;
    private String address;
    private String name;
    private String telephone;
    private Integer uid;
}
